package ru.niir.goodfil.db.dic;

import ru.niir.goodfil.utils.Pair;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Волков Олег on 20.04.15.
 */
public final class OperationState {

    public static final byte ADD = 0;

    public static final byte DEDUCT = 1;

    public static String asString(int value){
        switch (value) {
            case OperationState.ADD:
                return "Приход";
            case OperationState.DEDUCT:
                return "Списание";
        }
        return "";
    }

    private static Pair getPair(int value) {
        return new Pair(value, asString(value));
    }

    public static List<Pair> list() {
        return new ArrayList<Pair>() {{
            add(getPair(OperationState.ADD));
            add(getPair(OperationState.DEDUCT));
        }};
    }
}
